package com.hmdp.test.lifecycle.config;

import com.hmdp.test.lifecycle.bean.MyBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * bean 配置
 *
 * @author lizhihui
 */
@Configuration
public class MyBeanConfig {

    @Bean(name = "myBean", initMethod = "initMethod", destroyMethod = "destroyMethod")
    public MyBean myBean() {
        return new MyBean();
    }

}
